import 'app_const.dart';

class ApiConst {
  static const String httpGet = 'get';
  static const String httpPost = 'post';
}

class ApiServer {
  static String prod = (AppConfig.mode == 'P')
      ? 'https://api.heycard.ca/'
      : 'https://api.heycard.ca/'; //'https://www.cmapi.ca/cm_qa_lumen/backend/index.php/api';
  static String local = 'https://api.heycard.ca/hcapp/';
}

class ApiUri {
  static String init_app = 'potato/app/v1/init_load';
  static String set_address = 'potato/app/v1/set_address';
  static String address_list = 'potato/app/v1/address_list';
  static String wechat_login = 'potato/app/v1/wechat_login';

  static String prod_detail = 'potato/app/v1/prod_detail';
  static String prod_list = 'potato/app/v1/query_prods';

  static String add_payment_method = 'potato/payment/v1/stripe_3d/add_payment_method';

  static String order_history = 'potato/app/v1/order_history';
  static String order_co_init = 'potato/app/v1/before_co_init';
  static String order_co_update = 'potato/app/v1/before_co_update';
  static String order_co_submit = 'potato/app/v1/checkout';
  static String order_repay = 'potato/app/v1/repay_order';

  static String code_query = 'potato/app/v1/code_query';
  static String code_redeem = 'potato/app/v1/code_redeem';
  static String get_vouchers = 'potato/app/v1/get_vouchers';
  static String voucher_history = 'potato/app/v1/voucher_history';
  static String apply_wholesale = 'potato/app/v1/apply_wholesale';

  static String sub_category_list = 'potato/app/v1/query_categories';
  static String product_under_sub_category = 'potato/app/v1/cate2_prod_home';
  static String query_sale_prods = 'potato/app/v1/query_sale_prods';
  static String prod_home = 'potato/app/v1/prod_home';

  static String referal_rank = 'potato/app/v1/get_earning_game_rank';
}
